using System.Reflection;
using IoCBattle.Infrastructorrrr;
using StructureMap.Configuration.DSL;

namespace IoCBattle.Lifestyle.Infratrucsion
{
    public class LifestyleRegistry : Registry
    {
        public LifestyleRegistry()
        {
            this.Scan(scanner =>
                          {
                              scanner.Assembly(this.GetType().Assembly);
                              scanner.Include(t => t.Namespace.StartsWith("IoCBattle.Lifestyle"));
                              scanner.With(new TotallyTypicalConvention());
                          });
        }
    }
}